package day2;

public class TestFinal {
    public void test(){}
    public final void test2(){}
    //final修饰方法可以重载
    public void test2(int a){}
}
class Child extends TestFinal{
    @Override
    public void test() {}

    @Override
    public void test2(int a) {}
    //final 修饰方法不能重写
}
